home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr11
/
pcv05n08.zip
/
WAIT.DOC
< prev
next >
Wrap
Text File
|
1993-06-12
|
1KB
|
35 lines
WAIT.COM August 1992 Ed Quillen
-----------------------------------------------------------------
Purpose: WAIT is a short utility that lets you build a
delay into any batch file and determine its
duration on a case-by-case basis.
If you press any key before WAIT reaches its
timeout, it returns the errorlevel that can
take you past a step in your batch file.
Format: To use the program, insert the word WAIT on its
own line in a batch file, followed by a number
that represents how many seconds you want the
file to wait before it moves to the next line.
On the line directly beneath WAIT, insert
IF ERRORLEVEL 1 GOTO
followed by a location (label) name such as
SKIP in the example below. In this example, the
batch file waits ten seconds before backing up
or skis to an impertinent message at the end if
you press a key.
ECHO Will back up in 10 seconds unless you press a key
WAIT 10
IF ERRORLEVEL 1 GOTO SKIP
BACKUP C:\*.* /S A:
GOTO END
:SKIP
Echo Hey, you really should back up
:END